﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CoffeeMobile.Models;
using CoffeeMobile.Models.ViewModels;

namespace CoffeeMobile.Controllers
{
    public class BaseController : Controller
    {
        //protected coffeemobileEntities _db = new coffeemobileEntities();
        protected CoffeeMobileLinqDataContext _dbLinq = new CoffeeMobileLinqDataContext();
        
        //
        // GET: /Base/
        public BaseController()
        {
            TableGroupsRepository _tableGroupsRepository = new TableGroupsRepository();
            ViewBag.Tables = _tableGroupsRepository.GetTableGroups();
        }
        
    }
}
